<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>学生就业情况</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <!--link导入外部的css，js样式，如果导入的资源和本页面在同一个文件夹下，直接文件名即可-->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- jQuery 3 -->
    <script th:src="@{/asserts/bower_components/jquery/dist/jquery.min.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script th:src="@{/asserts/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- DataTables -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/AdminLTE.min.css}">
    <!--联想查询-->
    <script th:src="@{/asserts/Apolar_sh/lib/js/bigautocomplete.js}"></script>
    <link rel="stylesheet" th:href="@{/asserts/Apolar_sh/lib/css/bigautocomplete.css}" type="text/css"/>

    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        .search{
            margin-top: 40px;
            margin-left: 40px;
            position: relative;
        }
        td{
            text-align: center;
            width: 100px;
        }
        input{
            width: 65px;
        }
        th{
            text-align: center;
        }
    </style>
</head>


<body >


<div class="wrapper">
    <!-- Content Wrapper. Contains page content -->
    <!-- Content Header (Page header) -->
    <!-- Main content -->
    <section class="content-header">
        <h4>
            <i class="fa fa-search">修改学生就业情况</i>
        </h4>

    </section>
    <!-- /.content -->
</div>


<div class="wrapper">
    <!-- Content Wrapper. Contains page content -->
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h4>
            <i class="fa fa-navicon">&nbsp&nbsp <span th:text="${careerClassName}"></span>&nbsp学生就业情况</i>
        </h4>

    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <!-- /.box-header 部门列表的显示  table  表格  th/td单元个   th字体加粗，行标题-->
                    <div class="box-body">

                        <form th:action="@{/career/class/updateStuCareer}" method="post">

                        <table id="example1" class="table table-bordered table-striped">
                            <tbody>
                            <tr>
                                <th>学生姓名</th>
                                <th>是否就业</th>
                                <th>就业城市</th>
                                <th>就业公司</th>
                                <th>职位</th>
                                <th>实习薪资</th>
                                <th>正式薪资</th>
                                <th>福利待遇</th>
                                <th>推荐老师</th>
                                <th>备注</th>
                            </tr>



                            <tr th:each="career:${pageBean}">
                                <input type="hidden" name="careerClassId" th:value="${career.careerClassId}" class="careerClassId"/>

                                <input type="hidden" name="sid" th:value="${career.sid}" class="sid"/>

                                <td><input style="border: none;text-align: center;background-color:  transparent"type="text"name="careerStuName" th:value="${career.careerStuName}"/></td>
                                <td>
                                <select class="" name="careerIsCareer" id="careerIsCareer">
                                    <option th:selected="${career.careerIsCareer==1}" value="1" th:text="是">是</option>
                                    <option th:selected="${career.careerIsCareer==0}" value="0" th:text="否">否</option>
                                </select>
                                </td>
                                <td><input style="border: none;text-align: center;background-color:  transparent"type="text"name="careerCity" th:value="${career.careerCity}"/></td>
                                <td>
                                    <a class="btn btn-info">
                                        <input style="border: none;text-align: center;background-color:  transparent"type="text"name="careerCompany" th:value="${career.careerCompany}"/></a>
                                </td>
                                <td><input style="border: none;text-align: center;background-color:  transparent"type="text"name="careerJob" th:value="${career.careerJob}"/></td>
                                <td><input style="width: 50px;border: none;text-align: center;background-color:  transparent"type="text"name="careerInternship" th:value="${career.careerInternship}"/></td>
                                <td><input style="width: 50px;border: none;text-align: center;background-color:  transparent"type="text"name="careerSalary" th:value="${career.careerSalary}"/></td>
                                <td><input style="border: none;text-align: center;background-color:  transparent"type="text"name="careerWelfare" th:value="${career.careerWelfare}"/></td>
                                <td><input style="border: none;text-align: center;background-color:  transparent"type="text"name="careerTeacher" th:value="${career.careerTeacher}"/></td>
                                <td><input style="border: none;text-align: center;background-color:  transparent"type="text"name="careerRemarks" th:value="${career.careerRemarks}"/></td>
                            </tr>

                            <tr>
<!--                                <td>-->
<!--                                    <label><input type="checkbox" name="" id="all" value="" />&nbsp;&nbsp;全选</label>-->
<!--                                </td>-->
                                <td colspan="13" style="text-align:left;padding-left:20px;">

                                    <button type="submit" class="btn btn-success" >
                                        保存修改
                                    </button>&nbsp;&nbsp;
                                    <a class="btn btn-info" th:href="@{/career/class/job(careerClassId=${careerClassId},careerClassName=${careerClassName})}">
                                        <i class="fa fa-backward">返回</i>
                                    </a>
                                </td>
                            </tr>


                            </tbody>
                        </table>
                        </form>





                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>

<!-- ./wrapper -->





<!-- DataTables -->
<script th:src="@{/asserts/bower_components/datatables.net/js/jquery.dataTables.min.js}"></script>
<script th:src="@{/asserts/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js}"></script>
<!-- SlimScroll -->
<script th:src="@{/asserts/bower_components/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/asserts/bower_components/fastclick/lib/fastclick.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/asserts/dist/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes -->
<script th:src="@{/asserts/dist/js/demo.js}"></script>
<!-- page script -->
<!--联系查询-->
<script th:src="@{/asserts/Apolar_sh/lib/js/bigautocomplete.js}"></script>
<!-- page script -->

<script>

    function changePage(searchUrl) {
        if (searchUrl != null && searchUrl.trim() != "") {
            window.location.href = '[[${#httpServletRequest.getContextPath()}]]' + searchUrl + '?classDate=' + $("#classDate").val() + '&classTeacher' + $("#classTeacher").val() +'&classHeadTeacher' + $("#classHeadTeacher").val()+ '&classType' + $("#classType").val()+'&pageSize=' + $("#pageSize").val();
        } else {
            window.location.href = '[[${#httpServletRequest.getContextPath()}]]/career/findAll?pageSize=' + $("#pageSize").val();
        }
    }

    $("#all").click(function () {
        if (this.checked) {
            $(".checks").prop("checked", true);
            $("#all").prop("value", "全不选");
        } else {
            $(".checks").prop("checked", false);
            $("#all").prop("value", "全选");
        }
    });

</script>


</body>
</html>